package com.tuozixuan.jdk.example.proxy;

/*
 * https://www.cnblogs.com/zuidongfeng/p/8735241.html
 */
public class Client {

	public static void main(String[] args) {
        // �������ɵĴ�������ֽ����ļ�
        System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");

        // jdk��̬�������
        Subject subject = new JDKDynamicProxy(new RealSubject()).getProxy();
        subject.doSomething();
    }
}
